using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WTCOTH
{
    public partial class Game1 : Microsoft.Xna.Framework.Game
    {
        private float playerX = 40;
        private float playerY = 15;

        private void DrawPlayer()
        {
            spriteBatch.Draw(brick, new Rectangle((screenWidth / 2)-32, (screenHeight / 2)-32, 64, 64), Color.White);
        }

        private float get_boundary(string boundary)
        {
            float a = 0;
            switch(boundary)
            {
                case "top":
                    a = (float)(playerY - (((screenHeight / 2) - 32) / 64) - 1.5);
                    break;
                case "bottom":
                    a = (float)(playerY + (((screenHeight / 2) + 32) / 64) + 1.5);
                    break;
                case "left":
                    a = (float)(playerX - (((screenWidth / 2) - 32) / 64) - 1.5);
                    break;
                case "right":
                    a = (float)(playerX + (((screenWidth / 2) + 32) / 64) + 2.5);
                    break;
            }
            if (a < 0)
            {
                a = 0;
            }
            return a;
        }
    }
}
